** get segregation matrix for quintilesuse ${normed}, clear** restrict to college goerskeep if super_opeid > 0noi di "normed super > 0"local pq normed_par_qkeep super_opeid count `pq'?** correct weights reshape long `pq', i(super_opeid count) j(parq)rename `pq' fraclabel drop label_efalevelgen parq_count = frac * countdrop if parq == 9drop fracreshape wide parq_count, i(super_opeid) j(parq)expand 5bys super_opeid: gen parq = _ngen parq_count = .forv n = 1/5 {	replace parq_count = parq_count`n' if parq == `n'	replace parq_count`n' = parq_count`n' - 1 if parq == `n'	replace parq_count`n' = 0 if parq_count`n' == .}** jackknife countreplace count = count - 1forv n = 1/5 {	replace parq_count`n' = parq_count`n' / count}collapse (mean) parq_count? [aw = parq_count], by(parq)listexport delimited "${tabs}/app_table7c.csv" , replace